<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
	<title>Test Hooking</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta property="og:title" content="Facebook Like You!" />
	<meta property="og:type" content="website" />
	<meta property="og:url" content="http://facebooklikeyou.com" />
	<meta property="og:image" content="" />
	<meta property="og:site_name" content="Facebook Like You!" />
	<meta property="fb:app_id" content="154298721334849" />
	<script type="text/javascript" src="http://www.FacebookLikeYou.com/js/jquery-1.6.4.min.js"></script>
	
</head>
<body>
<div id="fb-root"></div>
<script type="text/javascript"> 

      (function() {
            var e = document.createElement('script');
            e.async = true;
            e.src = 'http://connect.facebook.net/en_US/all.js';
            document.getElementById('fb-root').appendChild(e);				
      }());

			
      window.fbAsyncInit = function() {

         FB.init({
              appId   : '154298721334849',
              status  : true,
              cookie  : true, 
              xfbml   : true 
            });

        FB.Event.subscribe('edge.create', function(href, widget) {
         $.post('http://facebooklikeyou.com/checkuser.php', function(data) {
					$('.result').html(data);
			});
        });
		   
		FB.Event.subscribe('edge.remove', function(href, widget) {
		  alert('You just unliked '+href);
		});

		FB.Event.subscribe('auth.authResponseChange', function(response) {
		  alert('The status of the session is: ' + response.status);
		});


    };
				  
function fblogin()
{
	FB.login(function(response) {
		if (response.authResponse) {
			FB.api('/me', function(response) {
				$('.result').html(response.authResponse.userID);
		});
		} else {
			$('.result').html('User cancelled login or did not fully authorize.');
			return false;
		}
	 }, {perms:'read_stream,publish_stream,offline_access,email,user_likes'});
}

</script>
<a href="javascript:fblogin()" >Login</a>

<script type="text/javascript">
    $(document).ready(function () {

        $('.connect_widget_like_button clearfix like_button_no_like').live('click', function () {
            alert('clicked');
        });
    });
</script>

	<div>Like button 1</div>

<div class="linkbtn" id="70a8f495debeedc5e3dae3a7ccd299f9"> 
<fb:like></fb:like>
</div>
<div>Like button 2</div>
<fb:like href="http://www.facebook.com/PhanThietVacation/" layout="button_count" show-faces="true" width="450" action="like" colorscheme="light" font="arial"></fb:like>

<div class="result"></div>    

</body>
</html>